package com.learn.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ExecutionAop {

    @Before("execution(* com.learn..*(..)) && args(com.learn.model.Member, ..)")
    public void execute0() {
        System.out.println("args(com.learn.model.Member, ..)");
    }

    @Before("execution(* com.learn..*(com.learn.model.Member, ..))")
    public void execute1() {
        System.out.println("execution(* com.learn..*(com.learn.model.Member, ..))");
    }

    @Before("execution(* com.learn..*(com.learn.model.User, ..))")
    public void execute2() {
        System.out.println("execution(* com.learn..*(com.learn.model.User, ..))");
    }

}
